package cn.sq.musicserver.user.service.impl;

import cn.sq.musicserver.user.entity.SqUser;
import cn.sq.musicserver.user.entity.SqUserPlus;
import cn.sq.musicserver.user.mapper.SqUserMapper;
import cn.sq.musicserver.user.service.ISqUserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author SQ
 * @since 2020-12-30
 */
@Service
public class SqUserServiceImpl extends ServiceImpl<SqUserMapper, SqUser> implements ISqUserService {


    @Override
    public List<String> findUserPermission(String userid) {
        return super.baseMapper.findUserPermission(userid);
    }

    @Override
    public List<String> findUserPermissionByUserEmail(String useremail) {
        return super.baseMapper.findUserPermissionByUserEmail(useremail);
    }

    @Override
    public List<String> findUserRoleByUserEmail(String useremail) {
        return super.baseMapper.findUserRoleByUserEmail(useremail);
    }

    @Override
    public List<SqUserPlus> selectUserRoleSqPermissionInfoById(String userid) {
        return super.baseMapper.selectUserRoleSqPermissionInfoById(userid);
    }
}
